﻿<%@ Page Language="C#" MasterPageFile="~/Common/Master/FrameMain.master" AutoEventWireup="true"
    Inherits="HumanResource_Employee_List" Title="无标题页" CodeBehind="List.aspx.cs" %>
<%@ Register src="../../Common/Controls/Selecter.ascx" tagname="Selecter" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 300px;
            overflow: hidden;
            white-space: nowrap;
        }
    </style>
   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="toolbar">
         <ul>
            <li><a id="lnkAdd" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/addnew.gif);">
                &nbsp;</b><asp:Literal ID="Literal1" runat="server" Text="增加"></asp:Literal></span></a></li>
            <li><a id="lnkDelete" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/DelUser.gif);">
                &nbsp;</b><asp:Literal ID="Literal4" runat="server" Text="删除"></asp:Literal></span></a></li>
         </ul>
    </div>
    <div id="head">
        <div class="left">
            <asp:DropDownList ID="drpStatus" runat="server" AutoPostBack="True" 
                onselectedindexchanged="drpStatus_SelectedIndexChanged" Width="100px">
            </asp:DropDownList>
        </div>
        <div class="right">
            <asp:Label ID="Label4" runat="server" Text="用户名：" Font-Bold="true"></asp:Label><asp:TextBox
                ID="txtSearch" runat="server" Width="113px" CssClass="txt"></asp:TextBox>                
            <asp:Button ID="btnSearch" runat="server" Text="搜索" 
                onclick="btnSearch_Click" />
            <asp:DropDownList ID="drpPager" runat="server" OnSelectedIndexChanged="drpPager_SelectedIndexChanged">
            </asp:DropDownList>
        </div>
    </div>
    <div id="list">
        <asp:HiddenField ID="hidSelectIDs" runat="server" Value="" />
        <table id="lvList" cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr id="lvHeader" runat="server">
                <th class="sp">
                    &nbsp;
                </th>
                <th class="chk">
                    <asp:CheckBox ID="chkSelectAll" runat="server" />
                </th>
                <th>
                    姓名
                </th>
                <th>姓别</th>               
                <th>
                    手机
                </th>
                <th>
                    Email
                </th>               
                <th>
                    入职时间
                </th>
                <th>
                    状态
                </th>
                <th>
                    操作
                </th>
            </tr>
            <asp:ListView ID="lv" runat="server" ItemPlaceholderID="items">
                <LayoutTemplate>
                    <tr id="items" runat="server">
                    </tr>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr id="row" runat="server">
                        <td class="sp">
                            &nbsp;
                        </td>
                        <td class="chk">
                            <asp:CheckBox ID="chkSelect" runat="server" />
                        </td>
                        <td>
                            <%#Eval("Name") %>&nbsp;
                        </td>
                        <td>
                            <%#Eval("Gender")%>&nbsp;
                        </td>
                        <td>
                            <%#Eval("Mobile") %>&nbsp;
                        </td>
                        <td>
                            <%#Eval("EMail") %>&nbsp;
                        </td>
                        <td>
                            <%#Eval("HireDate","{0:d}") %>&nbsp;
                        </td>
                        <td>
                            <%#(Jzy.Model.HR.EmployeeStatus)Eval("Status") %>&nbsp;
                        </td>
                        <td>
                            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#"Edit.aspx?ID=" + Encrypt(Eval("ID")) %>'>修改</asp:HyperLink>
                        </td>
                    </tr>
                </ItemTemplate>
                <EmptyDataTemplate>
                    <tr>
                        <td colspan="9" class="empty">
                            没有数据
                        </td>
                    </tr>
                </EmptyDataTemplate>
            </asp:ListView>
        </table>
    </div>
    <div id="foot">
        <uc1:selecter id="Selecter1" runat="server" />
        <asp:Literal ID="litPager" runat="server"></asp:Literal></div>
    <div style="clear: both;" />
    <div id="toolbar_bottom">      
        <asp:Button ID="btnRefresh" runat="server" Text="Button" OnClick="btnRefresh_Click"
            CssClass="refresh" />
        <asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" CausesValidation="False" />
    </div>
</asp:Content>
